package com.yazi.mxz.common.entity.beans;

import com.myframework.smhj.hibernate.Entity;
import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.SEQUENCE;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * Prize entity. @author MyEclipse Persistence Tools
 */
@javax.persistence.Entity
@Table(name = "MXZ_PRIZE", schema = "MXZ")
public class Prize extends Entity implements java.io.Serializable {

	// Fields

	private Long prizeId;
	private Integer type;
	private String name;
	private Float worth;
	private Integer amount;
	private Double rate;
	private Integer status;
	private String summary;
	private Integer expiredDay;

	// Constructors

	/** default constructor */
	public Prize() {
	}

	/** minimal constructor */
	public Prize(Integer type, String name, Float worth, Integer amount,
			Double rate, Integer status, Integer expiredDay) {
		this.type = type;
		this.name = name;
		this.worth = worth;
		this.amount = amount;
		this.rate = rate;
		this.status = status;
		this.expiredDay = expiredDay;
	}

	/** full constructor */
	public Prize(Integer type, String name, Float worth, Integer amount,
			Double rate, Integer status, String summary, Integer expiredDay) {
		this.type = type;
		this.name = name;
		this.worth = worth;
		this.amount = amount;
		this.rate = rate;
		this.status = status;
		this.summary = summary;
		this.expiredDay = expiredDay;
	}

	// Property accessors
	@SequenceGenerator(name = "generator", sequenceName = "SEQ_PRIZE")
	@Id
	@GeneratedValue(strategy = SEQUENCE, generator = "generator")
	@Column(name = "PRIZE_ID", unique = true, nullable = false, precision = 15, scale = 0)
	public Long getPrizeId() {
		return this.prizeId;
	}

	public void setPrizeId(Long prizeId) {
		this.prizeId = prizeId;
	}

	@Column(name = "TYPE", nullable = false, precision = 2, scale = 0)
	public Integer getType() {
		return this.type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	@Column(name = "NAME", nullable = false, length = 100)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "WORTH", nullable = false, precision = 8)
	public Float getWorth() {
		return this.worth;
	}

	public void setWorth(Float worth) {
		this.worth = worth;
	}

	@Column(name = "AMOUNT", nullable = false, precision = 8, scale = 0)
	public Integer getAmount() {
		return this.amount;
	}

	public void setAmount(Integer amount) {
		this.amount = amount;
	}

	@Column(name = "RATE", nullable = false, precision = 8, scale = 5)
	public Double getRate() {
		return this.rate;
	}

	public void setRate(Double rate) {
		this.rate = rate;
	}

	@Column(name = "STATUS", nullable = false, precision = 2, scale = 0)
	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	@Column(name = "SUMMARY", length = 300)
	public String getSummary() {
		return this.summary;
	}

	public void setSummary(String summary) {
		this.summary = summary;
	}

	@Column(name = "EXPIRED_DAY", nullable = false, precision = 8, scale = 0)
	public Integer getExpiredDay() {
		return this.expiredDay;
	}

	public void setExpiredDay(Integer expiredDay) {
		this.expiredDay = expiredDay;
	}

}